package bean;

import java.math.BigDecimal;

public class Message {
    private int messageId;
    private String toId;
    private String fromId;
    private long sendTime;
    private String content;
    private String isRead,type;

    public Message(int messageId, String toId, String fromId, long sendTime, String content, String isRead, String type) {
        this.messageId = messageId;
        this.toId = toId;
        this.fromId = fromId;
        this.sendTime = sendTime;
        this.content = content;
        this.isRead = isRead;
        this.type = type;
    }

    public Message(String toId, String fromId) {
        this.toId = toId;
        this.fromId = fromId;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public long getSendTime() {
        return sendTime;
    }

    public void setSendTime(long sendTime) {
        this.sendTime = sendTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "message{" +
                "messageId=" + messageId +
                ", toId='" + toId + '\'' +
                ", fromId='" + fromId + '\'' +
                ", sendTime='" + sendTime + '\'' +
                ", content='" + content + '\'' +
                ", isRead='" + isRead + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

}
